package com.yunhe.entity;

import java.util.Date;

public class Topic {
	private int tid;
	private String title;
	private String content;
	private Date ptime;
	private User user;
	private Board board;
	
	
	public Topic() {
	}
	public Topic(int tid, String title, String content, Date ptime, User user,
			Board board) {
		this.tid = tid;
		this.title = title;
		this.content = content;
		this.ptime = ptime;
		this.user = user;
		this.board = board;
	}
	
	
	public int getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getPtime() {
		return ptime;
	}
	public void setPtime(Date ptime) {
		this.ptime = ptime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Board getBoard() {
		return board;
	}
	public void setBoard(Board board) {
		this.board = board;
	}
	
	
}
